//
//  SearchCell.m
//  Double
//
//  Created by 袁庆秋 on 15/5/28.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "SearchCell.h"

@implementation SearchCell

- (void)dealloc
{

    [_scoreLabel release];
    [_showImage release];
    [_nameLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.showImage = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, [UIScreen mainScreen].bounds.size.width / 3,160)];
        self.showImage.layer.cornerRadius = 10;
        self.showImage.clipsToBounds = YES;
        [self addSubview:self.showImage];
        [self.showImage release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 + 10, 8, [UIScreen mainScreen].bounds.size.width / 3 * 2 - 20, 30)];
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.nameLabel];
        [self.nameLabel release];
        
        
        self.scoreLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 + 10, 45, [UIScreen mainScreen].bounds.size.width / 3 * 2 - 20, 60)];
        self.scoreLabel.textColor = [UIColor orangeColor];
        [self addSubview:self.scoreLabel];
        [self.scoreLabel release];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
